package com.bjpowernode.boss.exception;

import com.bjpowernode.boss.enums.RespInfo;

public class PowerException extends RuntimeException {

    private RespInfo respInfo;

    public PowerException() {
        super();
    }

    public PowerException(String message) {
        super(message);
    }

    public PowerException(RespInfo respInfo) {

        super(respInfo.getMessage());
        this.respInfo = respInfo;

    }

    public RespInfo getRespInfo() {
        return respInfo;
    }

    public void setRespInfo(RespInfo respInfo) {
        this.respInfo = respInfo;
    }
}
